package com.haoze.nurse.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "EMR.FILE_INDEX_DATA")
public class FileIndexDataEntity {

  @Id
  @Column(name = "FILE_INDEX_DATA_ID")
  private String fileIndexDataId;

  @Column(name = "DATA_VERSION")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private Integer dataVersion;

  @Column(name = "GMT_CREATE")
  private Date gmtCreate;

  @Column(name = "GMT_MODIFY")
  private Date gmtModify;

  @Column(name = "HOSPITAL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String hospitalId;

  @Column(name = "OUTPAT_NUM")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String outpatNum;

  @Column(name = "INPAT_NUM")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String inpatNum;

  @Column(name = "PAT_TYPE_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String patTypeId;

  @Column(name = "EMR_FILE_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String emrFileId;

  @Column(name = "SORT_ID")
  private Integer sortId;

  @Column(name = "DATASETDETAIL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String datasetdetailId;

  @Column(name = "DATASET_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String datasetId;

  @Column(name = "ELEMENT_ID")
  private String elementId;

  @Column(name = "FORMAT_DATA_VALUE")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String formatDataValue;

  @Column(name = "TPL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String tplId;

  @Column(name = "CTL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String ctlId;

  @Column(name = "ELEMENT_REMARK")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String elementRemark;

  @Column(name = "PARENT_DATASETDETAIL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String parentDatasetdetailId;

  @Column(name = "PARENT_DATASET_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String parentDatasetId;

  @Column(name = "PARENT_ELEMENT_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String parentElementId;

  @Column(name = "QUOTE_DATASETDETAIL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String quoteDatasetdetailId;

  @Column(name = "QUOTE_DATASET_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String quoteDatasetId;

  @Column(name = "QUOTE_ELEMENT_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String quoteElementId;

  @Column(name = "DATA_CODE")
  private String dataCode;

  @Column(name = "PARENT_FILE_INDEX_DATA_ID")
  private String parentFileIndexDataId;

  @Column(name = "DATA_STATUS")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String dataStatus;

  @Column(name = "BASE_TPL_DETAIL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String baseTplDetailId;

  @Column(name = "QUOTE_TPL_DETAIL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String quoteTplDetailId;

  @Column(name = "DATA_VALUE")
  private String dataValue;

  @Column(name = "PRINT_IDENTIFICATION")
  private String printIdentification;

  @Column(name = "SHOW_IDENTIFICATION")
  private String showIdentification;

  @Column(name = "DELETE_IDENTIFICATION")
  private String deleteIdentification; // 0-不删除，1-删除

  @Column(name = "ELEMENT_PROPERTY")
  private String elementProperty; // 0-非编辑区 1-编辑区 2-签名区

  @Column(name = "GROUP_NO")
  private String groupNo;

  @Column(name = "MEDICAL_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String medicalId; // 医疗术语主键

  @Column(name = "CLASS_NAME_ID")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String classNameId; // 类名

  @Column(name = "DATA_NO")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private Integer dataNo; // 数据编号

  @Column(name = "UNIT")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String unit; // 护理出入量单位

  @Column(name = "INPUT_TYPE")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String inputType; // 护理输入类型

  @Column(name = "EXTENDED_FIELD")
  @JsonInclude(JsonInclude.Include.NON_NULL)
  private String extendedField; //病历扩展字段

  public String getFileIndexDataId() {
    return fileIndexDataId;
  }

  public void setFileIndexDataId(String fileIndexDataId) {
    this.fileIndexDataId = fileIndexDataId == null ? null : fileIndexDataId.trim();
  }

  public Integer getDataVersion() {
    return dataVersion;
  }

  public void setDataVersion(Integer dataVersion) {
    this.dataVersion = dataVersion;
  }

  public Date getGmtCreate() {
    return gmtCreate;
  }

  public void setGmtCreate(Date gmtCreate) {
    this.gmtCreate = gmtCreate;
  }

  public Date getGmtModify() {
    return gmtModify;
  }

  public void setGmtModify(Date gmtModify) {
    this.gmtModify = gmtModify;
  }

  public String getHospitalId() {
    return hospitalId;
  }

  public void setHospitalId(String hospitalId) {
    this.hospitalId = hospitalId == null ? null : hospitalId.trim();
  }

  public String getOutpatNum() {
    return outpatNum;
  }

  public void setOutpatNum(String outpatNum) {
    this.outpatNum = outpatNum == null ? null : outpatNum.trim();
  }

  public String getInpatNum() {
    return inpatNum;
  }

  public void setInpatNum(String inpatNum) {
    this.inpatNum = inpatNum == null ? null : inpatNum.trim();
  }

  public String getPatTypeId() {
    return patTypeId;
  }

  public void setPatTypeId(String patTypeId) {
    this.patTypeId = patTypeId == null ? null : patTypeId.trim();
  }

  public String getEmrFileId() {
    return emrFileId;
  }

  public void setEmrFileId(String emrFileId) {
    this.emrFileId = emrFileId == null ? null : emrFileId.trim();
  }

  public Integer getSortId() {
    return sortId;
  }

  public void setSortId(Integer sortId) {
    this.sortId = sortId;
  }

  public String getDatasetdetailId() {
    return datasetdetailId;
  }

  public void setDatasetdetailId(String datasetdetailId) {
    this.datasetdetailId = datasetdetailId == null ? null : datasetdetailId.trim();
  }

  public String getDatasetId() {
    return datasetId;
  }

  public void setDatasetId(String datasetId) {
    this.datasetId = datasetId == null ? null : datasetId.trim();
  }

  public String getElementId() {
    return elementId;
  }

  public void setElementId(String elementId) {
    this.elementId = elementId == null ? null : elementId.trim();
  }

  public String getFormatDataValue() {
    return formatDataValue;
  }

  public void setFormatDataValue(String formatDataValue) {
    this.formatDataValue = formatDataValue == null ? null : formatDataValue.trim();
  }

  public String getTplId() {
    return tplId;
  }

  public void setTplId(String tplId) {
    this.tplId = tplId == null ? null : tplId.trim();
  }

  public String getCtlId() {
    return ctlId;
  }

  public void setCtlId(String ctlId) {
    this.ctlId = ctlId == null ? null : ctlId.trim();
  }

  public String getElementRemark() {
    return elementRemark;
  }

  public void setElementRemark(String elementRemark) {
    this.elementRemark = elementRemark == null ? null : elementRemark.trim();
  }

  public String getParentDatasetdetailId() {
    return parentDatasetdetailId;
  }

  public void setParentDatasetdetailId(String parentDatasetdetailId) {
    this.parentDatasetdetailId = parentDatasetdetailId == null ? null : parentDatasetdetailId.trim();
  }

  public String getParentDatasetId() {
    return parentDatasetId;
  }

  public void setParentDatasetId(String parentDatasetId) {
    this.parentDatasetId = parentDatasetId == null ? null : parentDatasetId.trim();
  }

  public String getParentElementId() {
    return parentElementId;
  }

  public void setParentElementId(String parentElementId) {
    this.parentElementId = parentElementId == null ? null : parentElementId.trim();
  }

  public String getQuoteDatasetdetailId() {
    return quoteDatasetdetailId;
  }

  public void setQuoteDatasetdetailId(String quoteDatasetdetailId) {
    this.quoteDatasetdetailId = quoteDatasetdetailId == null ? null : quoteDatasetdetailId.trim();
  }

  public String getQuoteDatasetId() {
    return quoteDatasetId;
  }

  public void setQuoteDatasetId(String quoteDatasetId) {
    this.quoteDatasetId = quoteDatasetId == null ? null : quoteDatasetId.trim();
  }

  public String getQuoteElementId() {
    return quoteElementId;
  }

  public void setQuoteElementId(String quoteElementId) {
    this.quoteElementId = quoteElementId == null ? null : quoteElementId.trim();
  }

  public String getDataCode() {
    return dataCode;
  }

  public void setDataCode(String dataCode) {
    this.dataCode = dataCode == null ? null : dataCode.trim();
  }

  public String getParentFileIndexDataId() {
    return parentFileIndexDataId;
  }

  public void setParentFileIndexDataId(String parentFileIndexDataId) {
    this.parentFileIndexDataId = parentFileIndexDataId == null ? null : parentFileIndexDataId.trim();
  }

  public String getDataStatus() {
    return dataStatus;
  }

  public void setDataStatus(String dataStatus) {
    this.dataStatus = dataStatus == null ? null : dataStatus.trim();
  }

  public String getBaseTplDetailId() {
    return baseTplDetailId;
  }

  public void setBaseTplDetailId(String baseTplDetailId) {
    this.baseTplDetailId = baseTplDetailId == null ? null : baseTplDetailId.trim();
  }

  public String getQuoteTplDetailId() {
    return quoteTplDetailId;
  }

  public void setQuoteTplDetailId(String quoteTplDetailId) {
    this.quoteTplDetailId = quoteTplDetailId == null ? null : quoteTplDetailId.trim();
  }

  public String getDataValue() {
    return dataValue;
  }

  public void setDataValue(String dataValue) {
    this.dataValue = dataValue == null ? null : dataValue.trim();
  }

  public String getPrintIdentification() {
    return printIdentification;
  }

  public void setPrintIdentification(String printIdentification) {
    this.printIdentification = printIdentification == null ? null : printIdentification.trim();
  }

  public String getShowIdentification() {
    return showIdentification;
  }

  public void setShowIdentification(String showIdentification) {
    this.showIdentification = showIdentification == null ? null : showIdentification.trim();
  }

  public String getDeleteIdentification() {
    return deleteIdentification;
  }

  public void setDeleteIdentification(String deleteIdentification) {
    this.deleteIdentification = deleteIdentification == null ? null : deleteIdentification.trim();
  }

  public String getElementProperty() {
    return elementProperty;
  }

  public void setElementProperty(String elementProperty) {
    this.elementProperty = elementProperty == null ? null : elementProperty.trim();
  }

  public String getGroupNo() {
    return groupNo;
  }

  public void setGroupNo(String groupNo) {
    this.groupNo = groupNo == null ? null : groupNo.trim();
  }

  public String getMedicalId() {
    return medicalId;
  }

  public void setMedicalId(String medicalId) {
    this.medicalId = medicalId == null ? "" : medicalId.trim();
  }

  public String getClassNameId() {
    return classNameId;
  }

  public void setClassNameId(String classNameId) {
    this.classNameId = classNameId == null ? "" : classNameId.trim();
  }

  public Integer getDataNo() {
    return dataNo;
  }

  public void setDataNo(Integer dataNo) {
    this.dataNo = dataNo;
  }

  public String getUnit() {
    return unit;
  }

  public void setUnit(String unit) {
    this.unit = unit;
  }

  public String getInputType() {
    return inputType;
  }

  public void setInputType(String inputType) {
    this.inputType = inputType;
  }

  public String getExtendedField() {
    return extendedField;
  }

  public void setExtendedField(String extendedField) {
    this.extendedField = extendedField;
  }
}